package com.wss.module.main.ui.page.viscosity.adapter;

import com.wss.common.base.adapter.BaseListAdapter;
import com.wss.common.base.adapter.listener.OnListItemClickListener;
import com.wss.common.base.adapter.superadapter.SuperViewHolder;
import com.wss.module.main.ResourceTable;
import ohos.app.Context;
import org.jetbrains.annotations.NotNull;

import java.util.List;

public class SimpleAdapter extends BaseListAdapter<String> {
    /**
     * 常规列表重写该方法
     *
     * @param context     context
     * @param list        数据源
     */
    public SimpleAdapter(Context context, List<String> list) {
        super(context, list,
                ResourceTable.Layout_main_item_of_text_view,
                null);
    }

    @Override
    public void onBindData(@NotNull SuperViewHolder holder, int layoutPosition, @NotNull String data) {
        holder.setText(ResourceTable.Id_tv_text, data);
    }
}
